import Vue from "vue";

/**
 * @description 部署全局组件
 */

// import global components
const component = {
  MyFooter: () => import("@/components/Footer"),
  NavBar: () => import("@/components/NavBar"),
  MyArticle: () => import("@/components/Article"),
  MyAuthor: () => import("@/components/Author"),
  GoBack: () => import("@/components/GoBack"),
  MyPagination: () => import("@/components/Pagination"),
};

for (let key in component) {
  // new Vue before
  Vue.component(component[key].name, component[key]);
}
